package com.yf.springboot.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;


/**
 * 重写Spring默认线程池测试1
 *
 * @Author yvan
 * @Date 2022-09-03 23:40:41
 **/
@Service
public class ThreadPoolService3 {
    private static final Logger LOGGER = LoggerFactory.getLogger(ThreadPoolService3.class);

    @Async
    public void executeAsync() {
        System.out.println("executeAsync3");
        LOGGER.info("当前运行线程名称:{}", Thread.currentThread().getName());
    }
}

